<html>
	<head>
		<link   type="text/css" rel="stylesheet" href="/ext/resources/css/ext-all.css" />
		<script src="/ext/adapter/ext/ext-base.js"></script>
		<script src="/ext/ext-all.js"></script>
		<!--#include file="public/head.asp" -->
	</head>
	<body>
<%
	var ns = '会员设置';
%>	
		<h1 style="margin:20px;font-size:20pt;"><%=ns%></h1>
    <form  method="post" class="edkForm" 
		   action="../deepcms/service/config/default.asp?ns=<%=encodeURI(ns)%>&action=update">
					<fieldset class="userConfig forForm">
						<legend>全局设置</legend>
						<%=DeepCMS.config.actions.get(ns)%>
					</fieldset>
			<br />
			<input type="submit" value="保存设置" />
			<input type="reset" text="重置" />	
		</form>
<%
	var ns = '注册条款';
%>
<%
var 
	 content
	,xmlFile = $$.cfg.edk_adminRoot + '/app/form/staticPage.xml'
	,xpath   = '//注册条款';
%>
		<br/>
		<h2 style="margin:20px;font-size:20pt;"><%=ns%></h2>
		<form method="post" class="edkForm" action ="service.asp?service=user&action=setRegisterAgreement&<%=xmlFile%>&xpath=<%=xpath%>">
			<textarea class="edk-htmlEditor" name="brief">
			<%
				/*
				with(new ActiveXObject('Msxml2.DOMDocument.6.0')){
	                if(load(Server.Mappath(xmlFile)) != true){
	                    throw "打开模板文件错误";
	                }
	                content = selectSingleNode(xpath).text;
	            }
				Response.Write(content);
				*/
			%>
			</textarea>	

			<script> 
	            Ext.QuickTips.init();
	            new Ext.form.HtmlEditor({
	                 applyTo  : Ext.select('textarea.edk-htmlEditor').item(0)
	                ,width    : "98%"
	                ,height   : 400
	            });	
			</script>
			<br />
			<input type="submit" value="post" />
			<input type="reset" value="reset" />
		</form>
	</body>
</html>
